<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class TuanDianpingPics extends Model
{

    public $timestamps = false;

    protected $table = 'tuan_dianping_pics';

    protected $primaryKey = 'pic_id';

    protected $fillable = [
        'pic_id',
        'order_id',
        'pic',
        'pic_oss',
    ];

    public function tuan_order()
    {
        return $this->hasOne('App\\Models\\TuanOrder','order_id','order_id');
    }
}
